package jpaperwork.web;

/**
 * User: fleipold
* Date: Nov 8, 2009
* Time: 10:04:53 PM
*/
public class PlaceholderFragment extends Fragment{
    final String name;

    // URL = (text fragment | placeholderFragment) *
    // )

    public PlaceholderFragment(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        PlaceholderFragment that = (PlaceholderFragment) o;

        if (name != null ? !name.equals(that.name) : that.name != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return name != null ? name.hashCode() : 0;
    }

    public String getName() {
        return name;
    }
}
